import time
import asyncio


async def get_num():
    for i in range(5):
        print("输出'你困吗？'")
        await asyncio.sleep(1)


async def get_str():
    for i in range(5):
        print("输出'我好困！'")
        await asyncio.sleep(1)


async def main():
    task1 = asyncio.create_task(get_num())
    task2 = asyncio.create_task(get_str())

    await task1
    await task2

asyncio.run(main())
